<template>
  <div class="goaddress">
    <h2>
      <img @click="returned" src="../../assets/left/left.png" alt />
      编辑收货地址
    </h2>
    <ul>
      <li>
        收货人：
        <input type="text" />
      </li>
      <li>
        手机号：
        <input type="tel" name="手机号码，电话号码" id />
      </li>
      <li>
        所在地区：
        <input type="text" />
      </li>
      <li>
        详细地址：
        <input type="text" />
      </li>

      <li>
        设置为默认地址
        <input type="checkbox" />
      </li>
      <li>删除此地址</li>
      
    </ul>
    <button>保存</button>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {
     
    };
  },
  computed: {},
  created() {},
  mounted() {},
  watch: {},
  methods: {
    returned() {
      this.$router.go(-1);
    }
  },
  components: {}
};
</script>

<style scoped lang='less'>
.goaddress {
  background-color: rgb(238, 238, 238);
  h2 {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
    background-color: #fff;
    img {
      width: 13px;
      position: absolute;
      left: 24px;
      top: 10px;
    }
  }
  ul {
    margin: 10px 0;
    li {
      padding: 6% 5%;
      border-bottom: 1px solid gray;
      background-color: #fff;
      position: relative;
      font-size: 15px;
      color: rgba(0, 0, 0, 0.5);
      input {
        width: 250px;
        border: none;
        position: absolute;
        right: 30px;
      }
    }
    li:nth-child(4) {
      margin-bottom: 15px;
    }
    li:nth-child(5) {
      border: none;
      margin-bottom: 15px;
      color: rgba(0, 0, 0, 0.7);
      position: relative;
      input {
        position: absolute;
        width: auto;
        top: 29px;
        right: 25px;
        transform: scale(2, 2);
      }
    }
    li:nth-child(6) {
      margin-bottom: 15px;
      border: none;
      color: rgba(255, 4, 4, 0.8);
      text-align: center;
    }
  }
  button {
    width: 85%;
    display: block;
    margin: 10px auto;
    border: none;
    background-color: #31ff16;
    font-size: 1.1em;
    color: #fff;
    padding: 3% 0;
    border-radius: 0.4em;
  }
}
</style>
